<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>knet: E:/knet-git/knet/knet/loop_profile_api.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">knet
   &#160;<span id="projectnumber">1.4.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="pages.html"><span>相关页面</span></a></li>
      <li><a href="modules.html"><span>模块</span></a></li>
      <li><a href="annotated.html"><span>结构体</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
      <li><a href="globals.html"><span>全局定义</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_885cc87fac2d91e269af0a5a959fa5f6.html">E:</a></li><li class="navelem"><a class="el" href="dir_4e74998c9a9305a116abc25fcf9a1edb.html">knet-git</a></li><li class="navelem"><a class="el" href="dir_a1c045b39f32066568ae964b52db514f.html">knet</a></li><li class="navelem"><a class="el" href="dir_f76d03789f0b12416cfffea59e2ed47d.html">knet</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">loop_profile_api.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="a00082.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2014-2015, dennis wang</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * modification, are permitted provided that the following conditions are met:</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *     * Redistributions of source code must retain the above copyright</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> *       notice, this list of conditions and the following disclaimer.</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *     * Redistributions in binary form must reproduce the above copyright</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *       notice, this list of conditions and the following disclaimer in the</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> *       documentation and/or other materials provided with the distribution.</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * </span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * DISCLAIMED. IN NO EVENT SHALL dennis wang BE LIABLE FOR ANY</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef LOOP_PROFILE_API_H</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#define LOOP_PROFILE_API_H</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="a00053.html">config.h</a>&quot;</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="keyword">extern</span> uint32_t <a class="code" href="a00082_a30be8a49214eb1485429bdff63541dfc.html#a30be8a49214eb1485429bdff63541dfc">knet_loop_profile_get_established_channel_count</a>(<a class="code" href="a00033.html">kloop_profile_t</a>* profile);</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="keyword">extern</span> uint32_t <a class="code" href="a00082_a9b4aceae0c7a1f1aa86c8db5996ec76a.html#a9b4aceae0c7a1f1aa86c8db5996ec76a">knet_loop_profile_get_active_channel_count</a>(<a class="code" href="a00033.html">kloop_profile_t</a>* profile);</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="keyword">extern</span> uint32_t <a class="code" href="a00082_a6eaacce21d69455a4e70bd6da4927082.html#a6eaacce21d69455a4e70bd6da4927082">knet_loop_profile_get_close_channel_count</a>(<a class="code" href="a00033.html">kloop_profile_t</a>* profile);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="keyword">extern</span> uint64_t <a class="code" href="a00082_a5bb651c97109287f36481c70c4096d02.html#a5bb651c97109287f36481c70c4096d02">knet_loop_profile_get_sent_bytes</a>(<a class="code" href="a00033.html">kloop_profile_t</a>* profile);</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="keyword">extern</span> uint64_t <a class="code" href="a00082_a1ac76d26570c5973ca054d5d2be07596.html#a1ac76d26570c5973ca054d5d2be07596">knet_loop_profile_get_recv_bytes</a>(<a class="code" href="a00033.html">kloop_profile_t</a>* profile);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="keyword">extern</span> uint32_t <a class="code" href="a00082_a61bab9d3f25b772c11067d7ad48e5591.html#a61bab9d3f25b772c11067d7ad48e5591">knet_loop_profile_get_sent_bandwidth</a>(<a class="code" href="a00033.html">kloop_profile_t</a>* profile);</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="keyword">extern</span> uint32_t <a class="code" href="a00082_a925853b256684e4d935f28d4c73a4832.html#a925853b256684e4d935f28d4c73a4832">knet_loop_profile_get_recv_bandwidth</a>(<a class="code" href="a00033.html">kloop_profile_t</a>* profile);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="a00082_ada601f1836bdb78ccd50be447559a101.html#ada601f1836bdb78ccd50be447559a101">knet_loop_profile_dump_file</a>(<a class="code" href="a00033.html">kloop_profile_t</a>* profile, FILE* fp);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="a00082_a256be2a18ebf141d93f95cdce1975a9e.html#a256be2a18ebf141d93f95cdce1975a9e">knet_loop_profile_dump_stream</a>(<a class="code" href="a00033.html">kloop_profile_t</a>* profile, <a class="code" href="a00036.html">kstream_t</a>* stream);</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="keyword">extern</span> <span class="keywordtype">int</span> <a class="code" href="a00082_a256b0db051dd95a364c3ad5612cbff98.html#a256b0db051dd95a364c3ad5612cbff98">knet_loop_profile_dump_stdout</a>(<a class="code" href="a00033.html">kloop_profile_t</a>* profile);</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* LOOP_PROFILE_API_H */</span><span class="preprocessor"></span></div>
<div class="ttc" id="a00082_a61bab9d3f25b772c11067d7ad48e5591_html_a61bab9d3f25b772c11067d7ad48e5591"><div class="ttname"><a href="a00082_a61bab9d3f25b772c11067d7ad48e5591.html#a61bab9d3f25b772c11067d7ad48e5591">knet_loop_profile_get_sent_bandwidth</a></div><div class="ttdeci">uint32_t knet_loop_profile_get_sent_bandwidth(kloop_profile_t *profile)</div><div class="ttdoc">取得发送带宽 </div><div class="ttdef"><b>Definition:</b> loop_profile.c:125</div></div>
<div class="ttc" id="a00082_ada601f1836bdb78ccd50be447559a101_html_ada601f1836bdb78ccd50be447559a101"><div class="ttname"><a href="a00082_ada601f1836bdb78ccd50be447559a101.html#ada601f1836bdb78ccd50be447559a101">knet_loop_profile_dump_file</a></div><div class="ttdeci">int knet_loop_profile_dump_file(kloop_profile_t *profile, FILE *fp)</div><div class="ttdoc">将统计信息写入文件 </div><div class="ttdef"><b>Definition:</b> loop_profile.c:163</div></div>
<div class="ttc" id="a00082_a6eaacce21d69455a4e70bd6da4927082_html_a6eaacce21d69455a4e70bd6da4927082"><div class="ttname"><a href="a00082_a6eaacce21d69455a4e70bd6da4927082.html#a6eaacce21d69455a4e70bd6da4927082">knet_loop_profile_get_close_channel_count</a></div><div class="ttdeci">uint32_t knet_loop_profile_get_close_channel_count(kloop_profile_t *profile)</div><div class="ttdoc">取得已经关闭的管道数量 </div><div class="ttdef"><b>Definition:</b> loop_profile.c:100</div></div>
<div class="ttc" id="a00082_a256b0db051dd95a364c3ad5612cbff98_html_a256b0db051dd95a364c3ad5612cbff98"><div class="ttname"><a href="a00082_a256b0db051dd95a364c3ad5612cbff98.html#a256b0db051dd95a364c3ad5612cbff98">knet_loop_profile_dump_stdout</a></div><div class="ttdeci">int knet_loop_profile_dump_stdout(kloop_profile_t *profile)</div><div class="ttdoc">将统计信息打印到标准输出 </div><div class="ttdef"><b>Definition:</b> loop_profile.c:210</div></div>
<div class="ttc" id="a00082_a30be8a49214eb1485429bdff63541dfc_html_a30be8a49214eb1485429bdff63541dfc"><div class="ttname"><a href="a00082_a30be8a49214eb1485429bdff63541dfc.html#a30be8a49214eb1485429bdff63541dfc">knet_loop_profile_get_established_channel_count</a></div><div class="ttdeci">uint32_t knet_loop_profile_get_established_channel_count(kloop_profile_t *profile)</div><div class="ttdoc">取得已经建立连接的管道数量 </div><div class="ttdef"><b>Definition:</b> loop_profile.c:70</div></div>
<div class="ttc" id="a00082_a9b4aceae0c7a1f1aa86c8db5996ec76a_html_a9b4aceae0c7a1f1aa86c8db5996ec76a"><div class="ttname"><a href="a00082_a9b4aceae0c7a1f1aa86c8db5996ec76a.html#a9b4aceae0c7a1f1aa86c8db5996ec76a">knet_loop_profile_get_active_channel_count</a></div><div class="ttdeci">uint32_t knet_loop_profile_get_active_channel_count(kloop_profile_t *profile)</div><div class="ttdoc">取得已经建立但还未连接的管道数量 </div><div class="ttdef"><b>Definition:</b> loop_profile.c:85</div></div>
<div class="ttc" id="a00033_html"><div class="ttname"><a href="a00033.html">_loop_profile_t</a></div><div class="ttdef"><b>Definition:</b> loop_profile.c:30</div></div>
<div class="ttc" id="a00082_a5bb651c97109287f36481c70c4096d02_html_a5bb651c97109287f36481c70c4096d02"><div class="ttname"><a href="a00082_a5bb651c97109287f36481c70c4096d02.html#a5bb651c97109287f36481c70c4096d02">knet_loop_profile_get_sent_bytes</a></div><div class="ttdeci">uint64_t knet_loop_profile_get_sent_bytes(kloop_profile_t *profile)</div><div class="ttdoc">取得已经发送的字节数 </div><div class="ttdef"><b>Definition:</b> loop_profile.c:110</div></div>
<div class="ttc" id="a00082_a925853b256684e4d935f28d4c73a4832_html_a925853b256684e4d935f28d4c73a4832"><div class="ttname"><a href="a00082_a925853b256684e4d935f28d4c73a4832.html#a925853b256684e4d935f28d4c73a4832">knet_loop_profile_get_recv_bandwidth</a></div><div class="ttdeci">uint32_t knet_loop_profile_get_recv_bandwidth(kloop_profile_t *profile)</div><div class="ttdoc">取得接收带宽 </div><div class="ttdef"><b>Definition:</b> loop_profile.c:144</div></div>
<div class="ttc" id="a00082_a1ac76d26570c5973ca054d5d2be07596_html_a1ac76d26570c5973ca054d5d2be07596"><div class="ttname"><a href="a00082_a1ac76d26570c5973ca054d5d2be07596.html#a1ac76d26570c5973ca054d5d2be07596">knet_loop_profile_get_recv_bytes</a></div><div class="ttdeci">uint64_t knet_loop_profile_get_recv_bytes(kloop_profile_t *profile)</div><div class="ttdoc">取得已经接收的字节数 </div><div class="ttdef"><b>Definition:</b> loop_profile.c:120</div></div>
<div class="ttc" id="a00053_html"><div class="ttname"><a href="a00053.html">config.h</a></div></div>
<div class="ttc" id="a00082_a256be2a18ebf141d93f95cdce1975a9e_html_a256be2a18ebf141d93f95cdce1975a9e"><div class="ttname"><a href="a00082_a256be2a18ebf141d93f95cdce1975a9e.html#a256be2a18ebf141d93f95cdce1975a9e">knet_loop_profile_dump_stream</a></div><div class="ttdeci">int knet_loop_profile_dump_stream(kloop_profile_t *profile, kstream_t *stream)</div><div class="ttdoc">将统计信息写入管道流 </div><div class="ttdef"><b>Definition:</b> loop_profile.c:189</div></div>
<div class="ttc" id="a00036_html"><div class="ttname"><a href="a00036.html">_stream_t</a></div><div class="ttdef"><b>Definition:</b> stream.c:33</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2015年 七月 22日 星期三 10:41:03 , 为 knet使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
